import { Route, BrowserRouter as Router, Routes } from 'react-router-dom';
import Inside from './inside';
import Instore from './instore';
import Screen from './screen';
import State from './state';

function App() {
  return (
    <Router>
      <Routes>
        <Route path="/" element={<Screen />} /> {/* 首页路由 */}
        <Route path="/state" element={<State />} /> {/* 状态路由 */}
        <Route path='/instore/:port' element={<Instore/>} />{/*入库流程，左侧入库步骤信息，右上入库历史任务，右下侧报警信息 */}
        <Route path='/inside/:port' element={<Inside/>} />{/* 屏幕路由 */}
      </Routes>
    </Router>
  );
}

export default App;
